<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateShippingRequestEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_address}" for="address" />
                    <h:selectOneMenu id="address" value="#{shippingRequestEntityController.selected.address}" title="#{bundle.CreateShippingRequestEntityTitle_address}" >
                        <f:selectItems value="#{addressEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_product}" for="product" />
                    <h:selectOneMenu id="product" value="#{shippingRequestEntityController.selected.product}" title="#{bundle.CreateShippingRequestEntityTitle_product}" >
                        <f:selectItems value="#{productEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_quantity}" for="quantity" />
                    <h:inputText id="quantity" value="#{shippingRequestEntityController.selected.quantity}" title="#{bundle.CreateShippingRequestEntityTitle_quantity}" />
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_purchaseOrder}" for="purchaseOrder" />
                    <h:selectOneMenu id="purchaseOrder" value="#{shippingRequestEntityController.selected.purchaseOrder}" title="#{bundle.CreateShippingRequestEntityTitle_purchaseOrder}" >
                        <f:selectItems value="#{purchaseOrderEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_packingOrder}" for="packingOrder" />
                    <h:selectOneMenu id="packingOrder" value="#{shippingRequestEntityController.selected.packingOrder}" title="#{bundle.CreateShippingRequestEntityTitle_packingOrder}" >
                        <f:selectItems value="#{packingOrderEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{shippingRequestEntityController.selected.id}" title="#{bundle.CreateShippingRequestEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_createdAt}" for="createdAt" />
                    <h:inputText id="createdAt" value="#{shippingRequestEntityController.selected.createdAt}" title="#{bundle.CreateShippingRequestEntityTitle_createdAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_createdBy}" for="createdBy" />
                    <h:inputText id="createdBy" value="#{shippingRequestEntityController.selected.createdBy}" title="#{bundle.CreateShippingRequestEntityTitle_createdBy}" />
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_lastModifiedAt}" for="lastModifiedAt" />
                    <h:inputText id="lastModifiedAt" value="#{shippingRequestEntityController.selected.lastModifiedAt}" title="#{bundle.CreateShippingRequestEntityTitle_lastModifiedAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateShippingRequestEntityLabel_lastModifiedBy}" for="lastModifiedBy" />
                    <h:inputText id="lastModifiedBy" value="#{shippingRequestEntityController.selected.lastModifiedBy}" title="#{bundle.CreateShippingRequestEntityTitle_lastModifiedBy}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{shippingRequestEntityController.create}" value="#{bundle.CreateShippingRequestEntitySaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{shippingRequestEntityController.prepareList}" value="#{bundle.CreateShippingRequestEntityShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateShippingRequestEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
